package com.wj.console.freemarkercode.util;

import java.sql.Connection;
import java.sql.DriverManager;

public class JDBCHepler {

//	private static final String DBName="electricvehicle";
	private static final String DBName="test";
	private static final String URL = "jdbc:mysql://123.56.220.216:3306/"+DBName;
    private static final String USER = "gofun";
    private static final String PASSWORD = "USDreZKs2@KFnw*z";
    private static final String DRIVER = "com.mysql.jdbc.Driver";
    
    public static Connection getConnection() throws Exception{
        Class.forName(DRIVER);
        Connection connection= DriverManager.getConnection(URL, USER, PASSWORD);
        return connection;
    }
}
